using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace NBusiness.CodeDom.Compiler
{
    [Serializable]
    public class EntityFile
    {
        public EntityFile() { }
        
        public EntityFile(string fileName, byte[] data)
            : this(fileName, Encoding.UTF8.GetString(data))
        { }

        public EntityFile(string fileName, string data)
        {
            FileName = fileName;
            Data = data;
        }

        public string FileName { get; set; }

        public string Data { get; set; }
    }
}
